package com.springboot.java0317springboot.iocdemo;

public class ComputerTest {

    public static void main(String[] args) {
//        //硬编码方式创建对象
//        Cpu cpu = new IntelCpu();
//        Memory memory = new SumsungMemory();
//        //配置电脑
//        Computer computer = new Computer();
//        computer.setBrand("小米");
//        computer.setCpu(cpu);
//        computer.setMemory(memory);
//        //运行
//        computer.start();
    }
}
